package com.springbase.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author: flyFan
 * @Date: 2021/9/13 20:54
 * @Version: 1.0
 */
@Data
@Configuration
@ConfigurationProperties(prefix="file")
@PropertySource("classpath:/properties/file.properties")
@Component
public class FileBean {
	
	private String name;
	
	private String content;
}
